<template>
    <el-breadcrumb separator="/">
        <!-- <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item> -->
        <el-breadcrumb-item v-for="(item,index) in listData" :key="index">{{ item.meta.title }}</el-breadcrumb-item>
        <!-- <el-breadcrumb-item>活动列表</el-breadcrumb-item>
        <el-breadcrumb-item>活动详情</el-breadcrumb-item> -->
    </el-breadcrumb>
</template>
<script>
export default{
    data() {
        return{
            listData: []
        }
    },
    mounted() {
        this.listData = this.$route.matched; //获取路由信息
    },
    watch: {
        $route(to) {
            this.listData = to.matched
        }
    }
}
</script>